package artibella.core.events 
{
	import flash.events.Event;

	/**
	 * ...
	 * @author pbordachar
	 */
	
	public class NavEvent extends Event 
	{
		public static const CALL				:String	= "call";
		public static const CHANGE				:String	= "change";
		public static const SHOW				:String	= "show"; // ?
		public static const SHOW_LINK			:String	= "show_link";
		
	
		private var _go:String; 
		// cible
		// lien ?
		
		public function NavEvent( type:String, go:String = "", bubbles:Boolean = false, cancelable:Boolean = false ) 
		{
			super( type, bubbles, cancelable );
			
			_go = go;
		}
		
		override public function clone():Event
		{
			return new NavEvent( type, _go, bubbles, cancelable );
		}
		
		override public function toString():String
		{
			var str:String = "[NavEvent type=\""+ type +"\" go=\""+ _go +"\" bubbles="+ bubbles +" cancelable="+ cancelable +"]";
			
			return str;
		}
		
		public function get go():String
		{
			return _go;
		}
	}
}